import request from "@/utils/request.ts";

export function getAllMenuListUrl(params: any) {
    return request({
        url: '/system/menu/list',
        method: 'get',
        params: params
    })
}

// 新增菜单
export function addMenuUrl(data: any) {
    return request({
        url: '/system/menu',
        method: 'post',
        data: data
    })
}

// 修改菜单
export function updateMenuUrl(data: any) {
    return request({
        url: '/system/menu',
        method: 'put',
        data: data
    })
}

// 删除菜单
export function delMenuUrl(menuId: any) {
    return request({
        url: '/system/menu/' + menuId,
        method: 'delete'
    })
}
